package com.example.androidmqtt.Entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.context.annotation.Primary;

/**
 * @author: pjg
 * @time: 2022/9/15
 */
public class Department {

    @TableId(value = "department_id",type = IdType.AUTO)
    private Integer departmentId;

    @TableField("department_name")
    private String departmentName;

    @TableField("tag")
    private String tag;

    @TableField("department_avatar")
    private String departmentAvatar;


    public Department(String departmentName, String tag, String departmentAvatar) {
        this.departmentName = departmentName;
        this.tag = tag;
        this.departmentAvatar = departmentAvatar;
    }

    public Department() {
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getDepartmentAvatar() {
        return departmentAvatar;
    }

    public void setDepartmentAvatar(String departmentAvatar) {
        this.departmentAvatar = departmentAvatar;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    @Override
    public String toString() {
        return "Department{" +
                "departmentId=" + departmentId +
                ", departmentName='" + departmentName + '\'' +
                '}';
    }
}
